// endregion: --- Ipfsile Types

mod config;
pub mod crypt;
mod ctx;
mod error;
mod log;
mod model;
mod utils;
mod web;
// #[cfg(test)] // Commented during early development.
pub mod _test_utils;
pub use self::error::{Error, Result};
use bs58;
use std::{thread, time::Duration};

#[tokio::main]
async fn main() -> Result<()> {
    let port = 5678;

    tracing_subscriber::fmt()
        .with_max_level(tracing::Level::INFO)
        .with_test_writer()
        // .without_time() // For early local development.
        // .with_target(false)
        // .with_env_filter(EnvFilter::from_default_env())
        .init();
    
    let s = "QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN";
    // decode the base58 string into a vector of bytes
    let bytes: Vec<u8> = bs58::decode(s).into_vec().unwrap();
    // convert the vector into a slice
    let slice: &[u8] = &bytes[..];
    // call the from_bytes method with the slice


    Ok(())
}
